class Solution {
public:
    bool isAnagram(string s, string t) {
        vector<int> hashs(26.0);
        vector<int> hasht(26,0);
        for(auto& s1:s)
            hashs[s1-'a']++;
        for(auto& t1:t)
            hasht[t1-'a']++;
        if(hasht==hashs)
            return true;
        else
            return false;
    }
};
